package com.adk.backend.mapper;

import com.adk.backend.entity.LxAdmin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 管理员Mapper接口
 */
@Mapper
public interface AdminMapper extends BaseMapper<LxAdmin> {
    
    /**
     * 根据邮箱查询管理员
     */
    LxAdmin selectByEmail(@Param("email") String email);
    
    /**
     * 根据用户名查询管理员
     */
    LxAdmin selectByUsername(@Param("username") String username);
}

